<template>
	<view>
		<view>{{username}}</view>
		<view v-for="one in tel">{{one}}</view>
		<view v-if = "age>=18">
			<button @tap="signup()">现在报名</button>
		</view>
		<view>
			<input type="text" v-model="address" placeholder="输入地址"/>
		</view>
		<view >{{address}}</view>
	</view> 
</template>

<script> 
	export default {
		data() {
			return {
				username:"wangchen",
				tel:["123","456"],
				age:20,
				address:""
			}
		},
		methods: {
			signup:function(){
				uni.showToast({
					title:"报名成功"
				})
			}
			
		}
	}
</script>

<style>

</style>
